package ynu.edu.ky_elm_springboot3.mapper;

import ynu.edu.ky_elm_springboot3.po.OrderDetailet;
import org.apache.ibatis.annotations.*;
import java.util.List;

@Mapper
public interface OrderDetailetMapper {
    
    @Select("select * from orderdetailet where orderId=#{orderId}")
    List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId);
    
    @Insert("insert into orderdetailet(orderId,foodId,quantity) values(#{orderId},#{foodId},#{quantity})")
    int saveOrderDetailet(OrderDetailet orderDetailet);
} 